#!/bin/bash
control_c()
{
killall ingest.sh
exit

}


# trap keyboard interrupt (control-c)

trap control_c SIGINT
year=$2
month=$1
start_day=$3
end_day=$4
for day in $(seq -w "$start_day" "$end_day")
	do
		for i in $(seq -w 00 23)
			do
			bash sys_resources/ingest.sh $i $day $month $year&
			wait;
		
			done	
	done
